import store from "@/store";  //把收集按钮数组从store中getters捞过来
  function  hasBtnPermission(str){
     let  buttons = store.getters.buttons
     return  buttons.indexOf(str) !== -1
}

export default  hasBtnPermission
//然后挂到Vue的原型上
